#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include "SoundLib/shortsound2txt.h"
#include "SoundLib/batchsound2txt.h"

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    //槽函数的定义
    void on_pushButton_shortSound2Txt_clicked();

    void on_pushButton_loadFile_clicked();

    void on_pushButton_batchSound2Txt_clicked();

private:
    Ui::Widget *ui;
    //相关变量的定义
    QString API_access_token;
    QString API_id;
    QString API_key;
    QString API_secret_key;
    QString API_record_path;
    QString API_language;
    char * m_buf;

    ShortSound2Txt m_shortSound;
    BatchSound2Txt m_batchSound;
};

#endif // WIDGET_H
